# raise  Python中主动抛出异常的关键字
# abort()函数  Flask中主动抛出异常

from flask import Flask,abort

app = Flask(__name__)

@app.route("/index")
def index():
    abort(404)
    return "123"

if __name__ == '__main__':
    app.run()